package com.example.zzbus.db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Generated;

@Entity(indexes = {
        @Index(value = "id DESC", unique = true)
})
public class User {
    @Id(autoincrement = true)
    private Long id;
    @NotNull
    private String username;
    @NotNull
    private String userpwd;
    @NotNull
    private String userphone;
    @NotNull
    private String usernick;
@Generated(hash = 1528774945)
public User(Long id, @NotNull String username, @NotNull String userpwd,
        @NotNull String userphone, @NotNull String usernick) {
    this.id = id;
    this.username = username;
    this.userpwd = userpwd;
    this.userphone = userphone;
    this.usernick = usernick;
}
@Generated(hash = 586692638)
public User() {
}
public Long getId() {
    return this.id;
}
public void setId(Long id) {
    this.id = id;
}
public String getUsername() {
    return this.username;
}
public void setUsername(String username) {
    this.username = username;
}
public String getUserpwd() {
    return this.userpwd;
}
public void setUserpwd(String userpwd) {
    this.userpwd = userpwd;
}
public String getUserphone() {
    return this.userphone;
}
public void setUserphone(String userphone) {
    this.userphone = userphone;
}
public String getUsernick() {
    return this.usernick;
}
public void setUsernick(String usernick) {
    this.usernick = usernick;
}
}
